package com.tang.generate.model.req

import com.tang.common.model.BaseVO
import io.swagger.v3.oas.annotations.media.Schema
import lombok.Data
import java.io.Serializable

@Data
@Schema
class TableFieldReq(
        @Schema(description = "数据库字段名称")
        var name: String? = "",

        @Schema(description = "数据库字段类型")
        var type: String? = "",

        @Schema(description = "原来的名字")
        var originName: String? ="",

        @Schema(description = "java字段名称")
        var javaName: String? = "",

        @Schema(description = "长度")
        var length: Int? = 0,

        @Schema(description = "小数点")
        var point: Int? = 0,

        @Schema(description = "java字段名称")
        var javaType: String? = "",

        @Schema(description = "上一个字段")
        var preColumn: String? ="",

        @Schema(description = "数据库字段描述")
        var desc: String? = "",

        @Schema(description = "是否主键")
        var primary: Boolean? = false,

        @Schema(description = "是否自增")
        var auto: Boolean? = false,

        @Schema(description = "数据库字段字符集")
        var charset: String? = "",

        @Schema(description = "数据库字段字符排序规则")
        var charsetSort: String? = "",

        @Schema(description = "是否不为空")
        var notNull: Boolean? = false,

        @Schema(description = "默认值")
        var defaultValue: String? = null,

        ) : BaseVO() {
}
